package com.jz.community.moduleshopping.confirmOrder.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jz.community.moduleshopping.R;
import com.jz.community.moduleshopping.confirmOrder.bean.OrderPostageInfo;

import java.util.List;

/**
 * Created by Andy Huang on 2017/11/22.
 *
 * @description:
 */

public class CommitOrderSendPriceListAdapter extends BaseQuickAdapter<OrderPostageInfo.FeeListBean, BaseViewHolder> {

    public CommitOrderSendPriceListAdapter(@Nullable List<OrderPostageInfo.FeeListBean> data) {
        super(R.layout.module_shopping_item_commit_order_send_price, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderPostageInfo.FeeListBean item) {
        helper.setText(R.id.tv_buy_goods_shop_name_dialog, item.getShopName());

        helper.setText(R.id.tv_send_price_dialog, "¥" + item.getShippingFee());
    }

    @Override
    public int getItemCount() {
        return super.getItemCount();
    }
}
